INSERT INTO `permission` (type, parent_id, name, url,perms, icon, level, status, gmt_create)
VALUES ('3', '0', '${clazz.remark}', '/page/${clazz.name?uncap_first}', '${projectName}:${clazz.name?uncap_first}:index', '', '0', '0',now());

SELECT @parentId := LAST_INSERT_ID();

INSERT INTO `permission` (type, parent_id, name, url,perms, icon, level, status, gmt_create)
VALUES ('5', @parentId, '列表查询', '', '${projectName}:${clazz.name?uncap_first}:query', '', '0', '0', now());

INSERT INTO `permission` (type, parent_id, name, url,perms, icon, level, status, gmt_create)
VALUES ('5', @parentId, '更新', '', '${projectName}:${clazz.name?uncap_first}:update', '', '1', '0', now());

INSERT INTO `permission` (type, parent_id, name, url,perms, icon, level, status, gmt_create)
VALUES ('5', @parentId, '增加', '', '${projectName}:${clazz.name?uncap_first}:create', '', '2', '0', now());

INSERT INTO `permission` (type, parent_id, name, url,perms, icon, level, status, gmt_create)
VALUES ('5', @parentId, '详情', '', '${projectName}:${clazz.name?uncap_first}:get', '', '3', '0', now());

INSERT INTO `permission` (type, parent_id, name, url,perms, icon, level, status, gmt_create)
VALUES ('5', @parentId, '删除', '', '${projectName}:${clazz.name?uncap_first}:del', '', '4', '0', now());